package info.pixstone.foodhunter.Servelet;

import java.io.IOException;

import javax.servlet.http.*;

@SuppressWarnings("serial")

public class Add extends HttpServlet
{		
	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		String entityType = req.getParameter("entity");
		resp.setContentType("text/plain");		
		if (entityType.equals("dish")) 
		{
			resp.getWriter().println("dish added");	
		}
		else if (entityType.equals("user")) 
		{
			resp.getWriter().println("user added");	
		}
		else
		{
			resp.getWriter().println("you type the wrong entity type name");				
		}
		
		
		
	}
}
